#include <string.h>

char * strpbrk( const char * string, const char * control ) {
  char *ret = NULL;
  register char ch;
  while( ch = *control ) {
    char * p = strchr( string, ch );
    if( p != NULL && ( ret == NULL || p < ret ) ) {
      ret = p;
    }
    control++;
  }
  return ( ret );
}
